﻿/**
 * Copyright (C) 2012 - present by Privosoft LLC. 
 * 
 * Please see distribution for license.
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Privosoft.DataFrame
{
    public class LoaderException : Exception
    {
        public ErrorInfo Error { get; private set; }
        
        public LoaderException(int row, Column column, string message) : base(message)
        { 
            Error = new ErrorInfo(row, column, message, LogLevels.FATAL); 
        }
        
        public LoaderException(string message) : base(message)
        {}
    }

    public class ErrorInfo
    {
        public int Row         { get; private set; }
        public Column Column   { get; private set; }
        public string Message  { get; private set; }
        public LogLevels Level { get; private set; }

        public ErrorInfo(int r, Column c, string m, LogLevels l)
        {
            Row = r;
            Column = c;
            Message = m;
            Level = l;
        }
    }
    
}
